package com.aipp.mall.h5.domain.entity;

import com.aipp.mall.common.anno.Note;
import com.aipp.mall.common.model.BaseAudit;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 会员收货地址对象 ums_member_address
 *
 * @author zcc
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("ums_member_address")
public class MemberAddress extends BaseAudit implements Serializable {

    @Serial
    private static final long serialVersionUID = 3452833314520292944L;

    private Long id;

    @Note(name = "MEMBER_ID")
    private Long memberId;

    @Note(name = "收货人名称")
    private String name;

    @Note(name = "隐藏前三位后四位的手机号")
    private String phoneHidden;

    @Note(name = "加密的手机号")
    private String phoneEncrypted;

    @Note(name = "是否为默认")
    private Integer defaultStatus;

    @Note(name = "邮政编码")
    private String postCode;

    @Note(name = "省份/直辖市")
    private String province;

    @Note(name = "城市")
    private String city;

    @Note(name = "区")
    private String district;

    @Note(name = "省份/直辖市id")
    private Long provinceId;

    @Note(name = "城市id")
    private Long cityId;

    @Note(name = "区id")
    private Long districtId;

    @Note(name = "详细地址(街道)")
    private String detailAddress;

    @Note(name = "是否默认")
    private Integer isDefault;

}
